import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue'
import Home from '@/components/Home.vue'
import Welcome from '@/components/Welcome.vue'
import index from '@/components/index.vue'
import numberAdd from '@/components/numberAdd.vue'
import numberList from '@/components/numberList.vue'
import numberModify from '@/components/numberModify.vue'
import Contact from '@/components/Contact.vue'
import proTypeList from '@/components/proTypeList.vue'
import proTypeAdd from '@/components/proTypeAdd.vue'
import proTypeModify from '@/components/proTypeModify.vue'
import proDataList from '@/components/proDataList.vue'
import proDataAdd from '@/components/proDataAdd.vue'
import proDataModify from '@/components/proDataModify.vue'
import Order from '@/components/Order.vue'
import appAdd from '@/components/appAdd.vue'
import appModify from '@/components/appModify.vue'
import appList from '@/components/appList.vue'
import Modify from '@/components/Modify.vue'
import TypeTwoAdd from '@/components/TypeTwoAdd.vue'
import TypeTwoModify from '@/components/TypeTwoModify.vue'
import dutyList from '@/components/dutyList.vue'
import dutyAdd from '@/components/dutyAdd.vue'
import dutyModify from '@/components/dutyModify.vue'
import userList from '@/components/userList.vue'
import userAdd from '@/components/userAdd.vue'
import userModify from '@/components/userModify.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      component: Login,
      name: 'login'
    },
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        { path: '/Welcome', name: 'Welcome', component: Welcome },
        { path: '/index', name: 'index', component: index },
        { path: '/numberAdd', name: 'numberAdd', component: numberAdd },
        { path: '/numberModify', name: 'numberModify', component: numberModify },
        { path: '/numberList', name: 'numberList', component: numberList },
        { path: '/Contact', name: 'Contact', component: Contact },
        { path: '/Order', name: 'Order', component: Order },
        { path: '/proTypeList', name: 'proTypeList', component: proTypeList },
        { path: '/proTypeAdd', name: 'proTypeAdd', component: proTypeAdd },
        { path: '/proTypeModify', name: 'proTypeModify', component: proTypeModify },
        { path: '/proDataList', name: 'proDataList', component: proDataList },
        { path: '/proDataAdd', name: 'proDataAdd', component: proDataAdd },
        { path: '/proDataModify', name: 'proDataModify', component: proDataModify },
        { path: '/appAdd', name: 'appAdd', component: appAdd },
        { path: '/appModify', name: 'appModify', component: appModify },
        { path: '/appList', name: 'appList', component: appList },
        { path: '/Modify', name: 'Modify', component: Modify },
        { path: '/TypeTwoAdd', name: 'TypeTwoAdd', component: TypeTwoAdd },
        { path: '/TypeTwoModify', name: 'TypeTwoModify', component: TypeTwoModify },
        { path: '/dutyList', name: 'dutyList', component: dutyList },
        { path: '/dutyAdd', name: 'dutyAdd', component: dutyAdd },
        { path: '/dutyModify', name: 'dutyModify', component: dutyModify },
        { path: '/userList', name: 'userList', component: userList },
        { path: '/userAdd', name: 'userAdd', component: userAdd },
        { path: '/userModify', name: 'userModify', component: userModify }
      ]
    }
  ]
})
